import http from '@/service'

export function selectMenus(params: any) {
	return http.get({
		url: '/system/menu/list',
		params
	})
}
export function insertMenu(data: any) {
	return http.post({
		url: '/system/menu/insert',
		data
	})
}
export function updateMenu(data: any) {
	return http.patch({
		url: '/system/menu/update',
		data
	})
}
export function deleteMenu(id: number | string) {
	return http.delete({
		url: '/system/menu/delete/' + id,
		method: 'delete'
	})
}
